export function hidden(str, frontNum, afterNum) {
  let len = str.length - frontNum - afterNum
  let hide = ''
  for (let i = 0; i < len; i++) {
    hide += '*'
  }
  return (
    str.substring(0, frontNum) + hide + str.substring(str.length - afterNum)
  )
}
